package com.qf.bean;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Training {
    private Integer id;

    private Date createdate;

    private String trainingname;

    private String trainingteacher;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date trainingdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime;

    private String trainingaim;

    private String trainees;

    private String trainingintro;

    private String auditopinion;

    private String trainingfeedback;

    private String trainingsummary;

    private String trainingresult;
    private Integer state;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Training() {
    }

    @Override
    public String toString() {
        return "Training{" +
                "id=" + id +
                ", createdate=" + createdate +
                ", trainingname='" + trainingname + '\'' +
                ", trainingteacher='" + trainingteacher + '\'' +
                ", trainingdate=" + trainingdate +
                ", endtime=" + endtime +
                ", trainingaim='" + trainingaim + '\'' +
                ", trainees='" + trainees + '\'' +
                ", trainingintro='" + trainingintro + '\'' +
                ", auditopinion='" + auditopinion + '\'' +
                ", trainingfeedback='" + trainingfeedback + '\'' +
                ", trainingsummary='" + trainingsummary + '\'' +
                ", trainingresult='" + trainingresult + '\'' +
                ", state=" + state +
                '}';
    }

    public Training(Integer id, Date createdate, String trainingname, String trainingteacher, Date trainingdate, Date endtime, String trainingaim, String trainees, String trainingintro, String auditopinion, String trainingfeedback, String trainingsummary, String trainingresult, Integer state) {
        this.id = id;
        this.createdate = createdate;
        this.trainingname = trainingname;
        this.trainingteacher = trainingteacher;
        this.trainingdate = trainingdate;
        this.endtime = endtime;
        this.trainingaim = trainingaim;
        this.trainees = trainees;
        this.trainingintro = trainingintro;
        this.auditopinion = auditopinion;
        this.trainingfeedback = trainingfeedback;
        this.trainingsummary = trainingsummary;
        this.trainingresult = trainingresult;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getTrainingname() {
        return trainingname;
    }

    public void setTrainingname(String trainingname) {
        this.trainingname = trainingname == null ? null : trainingname.trim();
    }

    public String getTrainingteacher() {
        return trainingteacher;
    }

    public void setTrainingteacher(String trainingteacher) {
        this.trainingteacher = trainingteacher == null ? null : trainingteacher.trim();
    }

    public Date getTrainingdate() {
        return trainingdate;
    }

    public void setTrainingdate(Date trainingdate) {
        this.trainingdate = trainingdate;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getTrainingaim() {
        return trainingaim;
    }

    public void setTrainingaim(String trainingaim) {
        this.trainingaim = trainingaim == null ? null : trainingaim.trim();
    }

    public String getTrainees() {
        return trainees;
    }

    public void setTrainees(String trainees) {
        this.trainees = trainees == null ? null : trainees.trim();
    }

    public String getTrainingintro() {
        return trainingintro;
    }

    public void setTrainingintro(String trainingintro) {
        this.trainingintro = trainingintro == null ? null : trainingintro.trim();
    }

    public String getAuditopinion() {
        return auditopinion;
    }

    public void setAuditopinion(String auditopinion) {
        this.auditopinion = auditopinion == null ? null : auditopinion.trim();
    }

    public String getTrainingfeedback() {
        return trainingfeedback;
    }

    public void setTrainingfeedback(String trainingfeedback) {
        this.trainingfeedback = trainingfeedback == null ? null : trainingfeedback.trim();
    }

    public String getTrainingsummary() {
        return trainingsummary;
    }

    public void setTrainingsummary(String trainingsummary) {
        this.trainingsummary = trainingsummary == null ? null : trainingsummary.trim();
    }

    public String getTrainingresult() {
        return trainingresult;
    }

    public void setTrainingresult(String trainingresult) {
        this.trainingresult = trainingresult == null ? null : trainingresult.trim();
    }
}